import request from "../axios";

export default {
	uploadImage(params) {
		return request({
			method: "POST",
			url: '/upload/image',
			headers: {
				'Content-Type': 'multipart/form-data'
			},
			data: params
		})
	},
	uploadFile(params) {
		return request({
			method: "POST",
			url: '/upload/file',
			headers: {
				'Content-Type': 'multipart/form-data; boundary=your-boundary-string'
			},
			data: params
		})
	},
}